package com.linkoog.devtools.middleware.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.linkoog.devtools.middleware.toolwindow.MiddlewareWindowManager;
import org.jetbrains.annotations.NotNull;

public class ShowMiddlewareToolWindowAction extends AnAction {

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        final Project project = e.getProject();
        if (project == null) return;

        MiddlewareWindowManager middlewareWindowManager = project.getService(MiddlewareWindowManager.class);
        middlewareWindowManager.show();
    }



}
